package de.tabuma.soap.entity.wsdl;

import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;
import de.tabuma.soap.entity.xsd.XsSchema;

/**
 * This class represents an element of an wsdl document called &quot;types&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="types",mappingType=SoapClassMapping.MappingType.WSDL))
public class TTypes implements Serializable {

    public TTypes() {
        
        this.tDocumentId = new Long(0);
        this.schema = new ArrayList<Long>();
    }
    
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    @SoapExtendsDefinition(extendsClass=TDocument.class)
    private Long tDocumentId;
    public Long getTDocumentId() {
        return tDocumentId;
    }
    public void setTDocumentId(Long tDocumentId) {
        this.tDocumentId = tDocumentId;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsSchema.class))
    protected List<Long> schema;
    public List<Long> getSchema() {
        if(this.schema==null) {
            schema = new ArrayList<Long>();
        }
        return schema;
    }
    public void setSchema(List<Long> schema) {
        this.schema = schema;
    }
}
